.class public Lcom/xingbook/group/view/TopicPopupView;
.super Landroid/view/ViewGroup;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field a:F

.field private b:Lcom/xingbook/ui/ad;

.field private c:Lcom/xingbook/ui/ad;

.field private d:Lcom/xingbook/ui/ad;

.field private e:Lcom/xingbook/ui/ad;

.field private f:Lcom/xingbook/ui/ad;

.field private g:Lcom/xingbook/ui/ad;

.field private h:Lcom/xingbook/ui/ad;

.field private i:I

.field private j:Lcom/xingbook/group/view/w;

.field private k:I

.field private l:I


# direct methods
.method public constructor <init>(Landroid/app/Activity;)V
    .locals 1

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/group/view/TopicPopupView;->i:I

    invoke-static {p1}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v0

    iput v0, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    invoke-static {p1}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v0

    iput v0, p0, Lcom/xingbook/group/view/TopicPopupView;->l:I

    invoke-static {p1}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v0

    iput v0, p0, Lcom/xingbook/group/view/TopicPopupView;->a:F

    invoke-direct {p0}, Lcom/xingbook/group/view/TopicPopupView;->c()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2

    invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/group/view/TopicPopupView;->i:I

    const/4 v0, 0x0

    instance-of v1, p1, Landroid/app/Activity;

    if-eqz v1, :cond_0

    check-cast p1, Landroid/app/Activity;

    :goto_0
    invoke-static {p1}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v0

    iput v0, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    invoke-static {p1}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v0

    iput v0, p0, Lcom/xingbook/group/view/TopicPopupView;->l:I

    invoke-static {p1}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v0

    iput v0, p0, Lcom/xingbook/group/view/TopicPopupView;->a:F

    invoke-direct {p0}, Lcom/xingbook/group/view/TopicPopupView;->c()V

    return-void

    :cond_0
    move-object p1, v0

    goto :goto_0
.end method

.method private c()V
    .locals 12

    const/high16 v5, 0x41a0

    const/4 v11, 0x0

    const/4 v2, 0x1

    const/16 v10, 0x8

    invoke-virtual {p0}, Lcom/xingbook/group/view/TopicPopupView;->getContext()Landroid/content/Context;

    move-result-object v0

    new-instance v1, Lcom/xingbook/ui/ad;

    invoke-direct {v1, v0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->b:Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->b:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v11}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->b:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->b:Lcom/xingbook/ui/ad;

    iget v3, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    iget v4, p0, Lcom/xingbook/group/view/TopicPopupView;->l:I

    invoke-virtual {v1, v11, v11, v3, v4}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->b:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v10}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->b:Lcom/xingbook/ui/ad;

    const/high16 v3, 0x7f00

    iput v3, v1, Lcom/xingbook/ui/ad;->i:I

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->b:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v1}, Lcom/xingbook/group/view/TopicPopupView;->addView(Landroid/view/View;)V

    const/high16 v1, 0x42c8

    iget v3, p0, Lcom/xingbook/group/view/TopicPopupView;->a:F

    mul-float/2addr v1, v3

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v6

    iget v1, p0, Lcom/xingbook/group/view/TopicPopupView;->a:F

    mul-float/2addr v1, v5

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v7

    iget v1, p0, Lcom/xingbook/group/view/TopicPopupView;->a:F

    mul-float/2addr v1, v5

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v8

    const/high16 v1, 0x4120

    iget v3, p0, Lcom/xingbook/group/view/TopicPopupView;->a:F

    mul-float/2addr v1, v3

    iget v3, p0, Lcom/xingbook/group/view/TopicPopupView;->l:I

    add-int v4, v6, v8

    mul-int/lit8 v4, v4, 0x6

    sub-int v9, v3, v4

    new-instance v3, Lcom/xingbook/ui/ad;

    invoke-direct {v3, v0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    const-string v3, ""

    iput-object v3, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    iput v1, v0, Lcom/xingbook/ui/ad;->j:F

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    const/high16 v1, 0x4238

    iget v3, p0, Lcom/xingbook/group/view/TopicPopupView;->a:F

    mul-float/2addr v1, v3

    iput v1, v0, Lcom/xingbook/ui/ad;->c:F

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    const/4 v1, -0x1

    iput v1, v0, Lcom/xingbook/ui/ad;->b:I

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    const/4 v1, 0x0

    iput-object v1, v0, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    const v1, -0xc35f14

    iput v1, v0, Lcom/xingbook/ui/ad;->i:I

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    const v1, -0xd58549

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    const/16 v1, 0x11

    iput v1, v0, Lcom/xingbook/ui/ad;->d:I

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    const v1, -0xdd782d

    move v3, v2

    move v4, v2

    move v5, v2

    invoke-virtual/range {v0 .. v5}, Lcom/xingbook/ui/ad;->a(IIIII)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    iput v11, v0, Lcom/xingbook/ui/ad;->l:I

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    iget v1, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v1, v7

    add-int v3, v9, v6

    invoke-virtual {v0, v7, v9, v1, v3}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v10}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/TopicPopupView;->addView(Landroid/view/View;)V

    add-int v0, v3, v8

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {v1}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->g:Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->g:Lcom/xingbook/ui/ad;

    iget v3, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v3, v7

    add-int v4, v0, v6

    invoke-virtual {v1, v7, v0, v3, v4}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v10}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/TopicPopupView;->addView(Landroid/view/View;)V

    add-int v0, v4, v8

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {v1}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->f:Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->f:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->f:Lcom/xingbook/ui/ad;

    iget v3, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v3, v7

    add-int v4, v0, v6

    invoke-virtual {v1, v7, v0, v3, v4}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->f:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v10}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->f:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/TopicPopupView;->addView(Landroid/view/View;)V

    add-int v0, v4, v8

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {v1}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->e:Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->e:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->e:Lcom/xingbook/ui/ad;

    iget v3, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v3, v7

    add-int v4, v0, v6

    invoke-virtual {v1, v7, v0, v3, v4}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->e:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v10}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->e:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/TopicPopupView;->addView(Landroid/view/View;)V

    add-int v0, v4, v8

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {v1}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->d:Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->d:Lcom/xingbook/ui/ad;

    iget v3, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v3, v7

    add-int v4, v0, v6

    invoke-virtual {v1, v7, v0, v3, v4}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v10}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/TopicPopupView;->addView(Landroid/view/View;)V

    add-int v0, v4, v8

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {v1}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    const v3, -0x2c333e

    iput v3, v1, Lcom/xingbook/ui/ad;->i:I

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    const v3, -0x555556

    invoke-virtual {v1, v3}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    iget v3, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v3, v7

    add-int v4, v0, v6

    invoke-virtual {v1, v7, v0, v3, v4}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v10}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    const-string v1, "\u53d6\u6d88"

    iput-object v1, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/group/view/TopicPopupView;->addView(Landroid/view/View;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    const/4 v2, 0x0

    const/4 v0, 0x1

    iput v0, p0, Lcom/xingbook/group/view/TopicPopupView;->i:I

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->b:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->d:Lcom/xingbook/ui/ad;

    const-string v1, "\u4ece\u76f8\u518c\u9009\u62e9"

    iput-object v1, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->d:Lcom/xingbook/ui/ad;

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->e:Lcom/xingbook/ui/ad;

    const-string v1, "\u62cd\u7167"

    iput-object v1, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->e:Lcom/xingbook/ui/ad;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->e:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    return-void
.end method

.method public a(I)V
    .locals 7

    const/4 v2, 0x0

    const/high16 v3, 0x41a0

    iget-object v0, p0, Lcom/xingbook/group/view/TopicPopupView;->b:Lcom/xingbook/ui/ad;

    iget v1, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    invoke-virtual {v0, v2, v2, v1, p1}, Lcom/xingbook/ui/ad;->layout(IIII)V

    const/high16 v0, 0x42c8

    iget v1, p0, Lcom/xingbook/group/view/TopicPopupView;->a:F

    mul-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    iget v1, p0, Lcom/xingbook/group/view/TopicPopupView;->a:F

    mul-float/2addr v1, v3

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    iget v2, p0, Lcom/xingbook/group/view/TopicPopupView;->a:F

    mul-float/2addr v2, v3

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    add-int v3, v0, v2

    mul-int/lit8 v3, v3, 0x6

    sub-int v3, p1, v3

    iget-object v4, p0, Lcom/xingbook/group/view/TopicPopupView;->c:Lcom/xingbook/ui/ad;

    iget v5, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v5, v1

    add-int v6, v3, v0

    invoke-virtual {v4, v1, v3, v5, v6}, Lcom/xingbook/ui/ad;->layout(IIII)V

    add-int v3, v6, v2

    iget-object v4, p0, Lcom/xingbook/group/view/TopicPopupView;->g:Lcom/xingbook/ui/ad;

    iget v5, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v5, v1

    add-int v6, v3, v0

    invoke-virtual {v4, v1, v3, v5, v6}, Lcom/xingbook/ui/ad;->layout(IIII)V

    add-int v3, v6, v2

    iget-object v4, p0, Lcom/xingbook/group/view/TopicPopupView;->f:Lcom/xingbook/ui/ad;

    iget v5, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v5, v1

    add-int v6, v3, v0

    invoke-virtual {v4, v1, v3, v5, v6}, Lcom/xingbook/ui/ad;->layout(IIII)V

    add-int v3, v6, v2

    iget-object v4, p0, Lcom/xingbook/group/view/TopicPopupView;->e:Lcom/xingbook/ui/ad;

    iget v5, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v5, v1

    add-int v6, v3, v0

    invoke-virtual {v4, v1, v3, v5, v6}, Lcom/xingbook/ui/ad;->layout(IIII)V

    add-int v3, v6, v2

    iget-object v4, p0, Lcom/xingbook/group/view/TopicPopupView;->d:Lcom/xingbook/ui/ad;

    iget v5, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v5, v1

    add-int v6, v3, v0

    invoke-virtual {v4, v1, v3, v5, v6}, Lcom/xingbook/ui/ad;->layout(IIII)V

    add-int/2addr v2, v6

    iget-object v3, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    iget v4, p0, Lcom/xingbook/group/view/TopicPopupView;->k:I

    sub-int/2addr v4, v1

    add-int/2addr v0, v2

    invoke-virtual {v3, v1, v2, v4, v0}, Lcom/xingbook/ui/ad;->layout(IIII)V

    return-void
.end method

.method public b()Z
    .locals 4

    const/4 v0, 0x1

    const/4 v1, 0x0

    const/16 v3, 0x8

    iget v2, p0, Lcom/xingbook/group/view/TopicPopupView;->i:I

    if-ne v2, v0, :cond_0

    iget-object v2, p0, Lcom/xingbook/group/view/TopicPopupView;->b:Lcom/xingbook/ui/ad;

    invoke-virtual {v2, v3}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v2, p0, Lcom/xingbook/group/view/TopicPopupView;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {v2, v3}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v2, p0, Lcom/xingbook/group/view/TopicPopupView;->e:Lcom/xingbook/ui/ad;

    invoke-virtual {v2, v3}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v2, p0, Lcom/xingbook/group/view/TopicPopupView;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v2, v3}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    :goto_0
    iput v1, p0, Lcom/xingbook/group/view/TopicPopupView;->i:I

    return v0

    :cond_0
    move v0, v1

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const/4 v1, 0x1

    if-eq v0, v1, :cond_0

    if-nez v0, :cond_1

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/group/view/TopicPopupView;->b()Z

    :goto_0
    return-void

    :cond_1
    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->j:Lcom/xingbook/group/view/w;

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/xingbook/group/view/TopicPopupView;->j:Lcom/xingbook/group/view/w;

    invoke-interface {v1, v0}, Lcom/xingbook/group/view/w;->a(I)V

    goto :goto_0

    :cond_2
    invoke-virtual {p0}, Lcom/xingbook/group/view/TopicPopupView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "\u672a\u77e5\u9519\u8bef"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method

.method protected onLayout(ZIIII)V
    .locals 0

    return-void
.end method

.method public setListener(Lcom/xingbook/group/view/w;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/group/view/TopicPopupView;->j:Lcom/xingbook/group/view/w;

    return-void
.end method
